<template>
    <section class="wrapper">
      <myHeader :obj="myObj" @events="events"></myHeader>
      <main>
        <router-link to="/becomeExpert">
          <div class="nameCardWrap_0312 bgColor_0313">
            <div class="nameCard_0315">
              <div class="face_0313"></div>
              <div class="personInfo_0313">
                <p class="p1_0313"><span>刘宏</span> 人力资源总裁、国企培训讲师</p>
                <p class="p2_0313">擅长领域：企业培训、公司文化建立</p>
              </div>
              <div class="icon_0313"></div>
            </div>
          </div>
        </router-link>
        <div class="personWrap_0313">
          <div class="titles_0313">已有 <span> 5 </span>位用户推荐</div>
          <div class="faceWrap_0313">
            <div class="faces_0313">
              <span class="defaultFace_0313"></span>
              <span class="defaultFace_0313"></span>
              <span class="defaultFace_0313"></span>
              <span class="defaultFace_0313"></span>
              <span class="defaultFace_0313"></span>
              <span class="defaultFace_0313"></span>
              <span class="defaultFace_0313"></span>
              <span class="defaultFace_0313"></span>
              <span class="defaultFace_0313"></span>
              <span class="defaultFace_0313"></span>
            </div>
            <p class="userText_0313">还差5个推荐就可以成为行家啦</p>
          </div>
          <div class="share_0313">分享到</div>
        </div>
        <ul class="bottomUL">
          <li><i class="wx"></i></li>
          <li><i class="circle"></i></li>
          <li><i class="xinl"></i></li>
          <li>
            <router-link to="/friendList">
              <div>
                <span>发给朋友</span>
                <span>...</span>
              </div>
            </router-link>
          </li>
        </ul>
      </main>
    </section>
</template>
<script>
import myHeader from './base/myHeader';
export default {
  data () {
    return {
      myObj: {
        type: 2,
        text: '成为行家'
      }
    }
  },
  methods: {
    events(i){
      if(i==2) {
        history.back();
      }
    },
  },
  components: {
    myHeader
  }
}

</script>
<style lang="less">
.wrapper {
  width: 3.75rem;
  height: 100%;
  main {
    padding-top: .44rem;
    height: 100%;
    width: 3.75rem;
    position: absolute;
    top: 0;
    box-sizing: border-box;
    .bottomUL {
      display: flex;
      li {
        width: 25%;
        display: flex;
        align-content: center;
        justify-content: center;
        padding: .2rem 0;
        span{
          display: block;
        }
        i {
          display: block;
          width: .5rem;
          height: .5rem;
          border-radius: 50%;
          
          &.wx {
            background: url('../assets/img/my@3x.png') center center;
            background-size: cover;
            background-repeat: no-repeat;
          }
          &.circle {
            background: url('../assets/img/my@3x.png') center center;
            background-size: cover;
            background-repeat: no-repeat;
          }
          &.xinl {
            background: url('../assets/img/my@3x.png') center center;
            background-size: cover;
            background-repeat: no-repeat;
          }
        }
      }
    }
    .personWrap_0313 {
      width: 3.75rem;
      padding: .15rem .15rem 0;
      box-sizing: border-box;
      background: white;
      .share_0313 {
        height: .64rem;
        line-height: .64rem;
        text-align: center;
        background: white;
        font-size: .2rem;
        color: #555;
      }
      .faceWrap_0313 {
        .userText_0313 {
          padding-bottom: .18rem;
          font-size: .14rem;
          color: #555555;
          border-bottom: .01rem solid #E5E5E5;
          text-align: right;
        }
        .faces_0313 {
          padding-top: .18rem;
          overflow: hidden;
          .defaultFace_0313 {
            float: left;
            display: block;
            width: .53rem;
            height: .53rem;
            border-radius: 50%;
            margin-right: .2rem;
            background: url('../assets/img/expert/icon_my@1.5x.png') center center;
            background-size: cover;
            background-repeat: no-repeat;
            margin-bottom: .24rem;
            &:nth-of-type(5n){
                margin-right: 0rem;
              }
          }

        }
      }
      
      .titles_0313 {
        height: .54rem;
        border-bottom: .01rem solid #E5E5E5; 
        font-size: .16rem;
        padding-top: .2rem;
        box-sizing: border-box;
        span {
          padding: 0 .03rem;
          color: #557AFF;
        }
      }
    }
    .bgColor_0313 {
      background: #FAFAFA!important;
      margin-bottom: .16rem;
    }
    .nameCardWrap_0312 {
      width: 100%;
      height: .82rem;
      background: white;
      padding: .16rem .15rem 0;
      box-sizing: border-box;
      .nameCard_0315 {
        width: 3.45rem;
        display: flex;
        height: .65rem;
        align-items: center;
        .face_0313 {
          width: .42rem;
          height: .42rem;
          border-radius: 50%;
          background: #EBEBEB;
        }
        .icon_0313 {
          width: .2rem;
          height: .2rem;
          background: url('../assets/img/icon_shape@3x.png') center center;
          background-size: cover;
          background-repeat: no-repeat;
        }
        .personInfo_0313 {
          width: 2.6rem;
          padding-left: .15rem;
          .p1_0313 {
            width: 2.6rem;
            height: .16rem;
            font-size: .12rem;
            color: #828282;
            overflow: hidden;
            text-overflow:ellipsis;
            white-space: nowrap;
            span {
              font-size: .14rem;
              color: #39393D;
              padding-right: .04rem;
            }
          }
          .p2_0313 {
            width: 2.6rem;
            padding-top: .08rem;
            font-size: .14rem;
            color: #555555;
            font-weight: bold;
            overflow: hidden;
            text-overflow:ellipsis;
            white-space: nowrap;
          }
        }
      }
    } 
  }
}
  
</style>
